#coding:utf-8
import xadmin

from .models import  CliCookie


class BaseSetting(object):
    #后台主题功能
    enable_themes = True
    use_bootswatch = True


class GlobalSetting(object):
    site_title = "cli_cookie搜集后台"
    site_footer = "cli_cookie搜集后台"
    menu_style = "accordion"#收缩


class CliCookieAdmin(object):
    #后台显示的字段
    list_display = ["cli_cookie", "add_time"]

    #页面搜索功能
    list_display = ["cli_cookie", "add_time"]

    #筛选字段
    list_filter =  ["cli_cookie"]

xadmin.site.register(CliCookie, CliCookieAdmin)